import request from '@/utils/request'

//获取所有学生的问题列表
export function getAllList(data) {
  return request({
    url: '/student/problem/getAllList',
    method: 'get',
    params:data,
  })
}

//获取某个学生的问题列表
export function getList(data) {
  return request({
    url: '/student/problem/getList',
    method: 'get',
    params:data,
  })
}

//发布问题
export function postProblem(data) {
  return request({
    url: '/student/problem/postProblem',
    method: 'post',
    data,
  })
}

//获取问题详细信息
export function getDetail(data) {
  return request({
    url: '/student/problem/getDetail',
    method: 'get',
    params:data,
  })
}

//获取问题答复
export function getProblemReply(data) {
  return request({
    url: '/student/problem/getProblemReply',
    method: 'get',
    params:data,
  })
}


//删除学生自己发布的问题
export function deleteProblem(data) {
  return request({
    url: '/student/problem/deleteProblem',
    method: 'delete',
    params:data,
  })
}

